package com.gxhmplan.talent.service;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.gxhmplan.talent.dao.TalentDao;
import com.gxhmplan.talent.entity.Talent;
import com.gxhmplan.util.Util;

@Service("talentService")
public class TalentServiceImpl implements TalentService{
	
	@Resource
	TalentDao talentDao;
	public int addTalnet(Talent talent) {
		talent.setId(Util.object2String(UUID.randomUUID()));
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		talent.setCreateTime(sdf.format(new Date()));
		return talentDao.addTalent(talent);
	}
	
}
